package com.xmy.cultivate.mapper;

import com.xmy.cultivate.entity.CoursePriceSchool;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 课程学校价格，对应价格表 Mapper 接口
 * </p>
 *
 * @author min
 * @since 2022-07-26
 */
public interface CoursePriceSchoolMapper extends BaseMapper<CoursePriceSchool> {

    @Select("select * from course_price_school where course_id = ${courseId} and school_id = ${schoolId} and deleted = 0")
    public CoursePriceSchool getCoursePriceSchoolByCourseId(@Param("courseId") Long courseId, @Param("schoolId") Long schoolId);
}
